<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>TreeHole Admin</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link type="text/css"
			href="${pageContext.request.contextPath }/css/global.css"
			rel="stylesheet" />

	</head>
	<body>
		<div class="box">
			<div class="title">
				【用户列表】
			</div>
			<div class="con">
				<table cellpadding="0" cellspacing="0">
					<thead>
						<tr>
							<td>用户</td>
							<td>Email</td>
							<td>注册时间</td>
							<td>最后登录时间</td>
							<td>状态</td>
							<td>操作</td>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${userList }" var="user">
							<tr>
								<td class="imgAndNick">
									<img src="${pageContext.request.contextPath }/images/defaultPortrait.gif" alt="头像" width="25" height="25" />
									<span class="isBold">${user.nick }</span>
								</td>
								<td>${user.uemail }</td>
								<td>${user.reg_date }</td>
								<td>${user.last_login_date }</td>
								<td><span class="isBold">${user.state==0?"允许":"禁止" }</span></td>
								<td>
									<a class="handler" href="javascript:void(0)" onclick="window.location='${pageContext.request.contextPath }/pages/user_mod.do?act=forbid&user.id=${user.id }'">禁言</a>&nbsp;&nbsp;&nbsp;&nbsp;
									<a class="handler" href="javascript:void(0)" onclick="window.location='${pageContext.request.contextPath }/pages/user_mod.do?act=recover&user.id=${user.id }'">恢复</a>
								</td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</body>
</html>
